#include<iostream>

using namespace std;

class Test
{
	public:
		Test(const char * str):info(str){++i;};
		static Test& getInstance()
		{
			static Test tt("hello");
			return tt;
		};
		Test & instance()
		{
			 static Test tt1("hi");
			return tt1;
		}
		string info;
		static int i ;
};
int Test::i = 5;


int main()
{
	Test tt("hi");
	Test tt1(tt);
	cout<<tt1.info<<endl;
cout<<Test::i<<endl;
	tt.instance();
tt.instance();
tt.instance();
tt.instance();
tt.instance();
cout<<Test::i<<endl;
}